<?php
declare (strict_types=1);

namespace app\model;

use think\Model;

/**
 * @mixin Model
 */
class Application extends Model
{
    //
    protected $json = ['machine_list', 'goods_list', 'attach_list'];

    public function user()
    {
        return $this->hasOne(Users::class, 'id', 'user_id');
    }

    public function record_user()
    {
        return $this->hasOne(Users::class, 'id', 'record_user_id');
    }

    public function verify_user()
    {
        return $this->hasOne(Users::class, 'id', 'verify_user_id');
    }
}
